function upload() {
    //手动提交表单
    var form = document.getElementsByTagName("form")[0];
    form.submit();
}

function newLocation(index) {
    window.location.href = index;
}

function closeAdvertise(index) {
    var advertise = document.getElementsByClassName("advertise")[index];
    advertise.style.display = "none";
    window.event ? window.event.cancelBubble = true : e.stopPropagation();
}